import request from "../utils/request";

export default {
  login(data) {
    return request.post("/login", data);
  },
  //   首页
  index() {
    return request.get("/Index/index");
  },
  //   订单详情
  h5Compainon() {
    return request.get("/h5/companion");
  },
  //   提交订单
  createOrder(params) {
    return request.post("/createOrder", params);
  },
  //   订单列表
  orderList(params) {
    return request.get("/order/list", { params });
  },
  //   订单详情
  orderDetail(params) {
    return request.get("/order/detail", { params });
  }, 
};
